define(function(require,exports,module){
    require("jquery");
    require("layer");
    var chooselayer;
    course = decodeURI(decodeURI(window.location.search.split("=")[1]));

    $(".open-course").on("click",function(){
        chooselayer = layer.open({
            title:false,
            content:$("#course-warp").html()
        })
    })

    // 选中课程
    $(document).on("selected",".select-wrap .mui-table-view-radio",function(e){
        $(".open-course").text(e.detail.el.innerText);
        setTimeout(function(){
            layer.close(chooselayer);
        },200)
    })
})
